import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;

/**
 * 
 */

/**
 * @author Simon
 *
 */
public class ProxyWindow extends JFrame
{
	JFrame proxy = null;
	JTextField host;
	JTextField port;
    JButton setProxy;
    JButton cancel;
	
	public ProxyWindow()
	{
		super("Set Proxy");
		setLayout(new GridBagLayout());
		GridBagConstraints constraints = new GridBagConstraints();
		this.setLayout(new GridBagLayout());
    	constraints.insets = new Insets(20,20,20,20);
		
		host = new JTextField();
		port = new JTextField();
		host.setColumns(20);
		port.setColumns(10);
	
	    setProxy = new JButton("Set Proxy");
	    cancel = new JButton("Cancel");
	    
	    constraints.fill = GridBagConstraints.HORIZONTAL;
    	constraints.gridx = 0;
    	constraints.gridy = 0;
    	this.add(new JLabel("Proxy Host: "), constraints);
    	
    	constraints.gridx = 1;
    	constraints.gridy = 0;
    	this.add(host, constraints);
    	
    	constraints.gridx = 0;
    	constraints.gridy = 1;
    	this.add(new JLabel("Proxy Port: "), constraints);
    	
    	constraints.gridx = 1;
    	constraints.gridy = 1;
    	this.add(port, constraints);
    	
    	constraints.gridx = 0;
    	constraints.gridy = 2;
    	this.add(cancel, constraints);
    	
    	constraints.gridx = 1;
    	constraints.gridy = 2;
    	this.add(setProxy, constraints);

		this.setPreferredSize(new Dimension(400,220));
		this.pack();
		this.setVisible(true);		
	}



}
